import { makeObservable, observable, action } from 'mobx'

class Counter {
  constructor() {
    makeObservable(this, {
      count: observable,
      add: action.bound
    })
  }
  count: number = 0
  add() {
    this.count++
  }
}

export default new Counter()